import { Typography } from 'antd';
import SensorList from './components/SensorList';

const { Title } = Typography;
const sensors = [
  { type: 'temperature' as const, interval: 2000 },
  { type: 'humidity' as const, interval: 3000 },
  { type: 'light' as const, interval: 4000 },
  { type: 'airQuality' as const, interval: 5000 },
];
const HomePage: React.FC = () => {
  return (
    <div>
      <Title>传感器数据</Title>

      <SensorList sensors={sensors} sendData={() => {}} />
    </div>
  );
};

export default HomePage;
